Release 10.1A: OpenEdge Development:
Progress 4GL Reference


CALL-TYPE attribute

The type of call, which must be the dynamic version of one of the following:

You can use a keyword constant or an integer. Table 54 lists the keyword constants and integers you can use.

Table 54: Keyword constants for the CALL-TYPE attribute
Keyword constant
Integer
PROCEDURE-CALL-TYPE
1
FUNCTION-CALL-TYPE
2
GET-ATTR-CALL-TYPE
3
SET-ATTR-CALL-TYPE
4

The default is PROCEDURE-CALL-TYPE.

To get the value of an attribute or to invoke a method, set CALL-TYPE to GET-ATTR-CALL-TYPE.

To set the value of object:attribute to the first parameter set by the SET-PARAMETER( ) method, set CALL-TYPE to SET-ATTR-CALL-TYPE, as in the following fragment:

/* set SESSION:NUMERIC-FORMAT to "european" */ 
hCall:IN-HANDLE = "session". 
HCALL:CALL-TYPE = SET-ATTR-CALL-TYPE. 
hCall:CALL-NAME = "numeric-format". 
hCall:NUM-PARAMETERS = 1. 
hCall:SET-PARAMETER( 1, "CHAR", "INPUT", "european"). 
hCall:INVOKE. 

Note: Progress Software Corporation recommends that you do not set the CALL object's CALL-TYPE attribute to SET-ATTR-CALL-TYPE to set a BUFFER-FIELD object's BUFFER-VALUE attribute, since there in no way to run triggers for the target field.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095